From: Jasper St. Pierre Date: Tue, 5 Mar 2013 05:55:54 +0000 (-0500) Subject: screenShield: Forward key presses to tne entry when raising the shield X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4500 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=209014b083dbe86ed0e0860a6016735571b56f94;p=gnome-shell.git screenShield: Forward key presses to tne entry when raising the shield https://bugzilla.gnome.org/show_bug.cgi?id=686740 --- diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index e9cb99fcf..373ddb5c6 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -1166,5 +1166,9 @@ const LoginDialog = new Lang.Class({ this.parent(); Main.ctrlAltTabManager.removeGroup(this.dialogLayout); - } + }, + + addCharacter: function(unichar) { + this._promptEntry.clutter_text.insert_unichar(unichar); + }, }); diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index ada1024e6..25fa4ccfb 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -601,6 +601,10 @@ const ScreenShield = new Lang.Class({ return false; this._ensureUnlockDialog(true, true); + + if (GLib.unichar_isgraph(unichar)) + this._dialog.addCharacter(unichar); + this._liftShield(true, 0); return true; }, diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index 07cbe4fbc..29825323e 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -300,4 +300,8 @@ const UnlockDialog = new Lang.Class({ this.destroy(); }, + + addCharacter: function(unichar) { + this._promptEntry.clutter_text.insert_unichar(unichar); + }, });